/*
 * @Author: Zhang Kai
 * @Date: 2021-12-29 15:47:06
 * @LastEditors: mayijun
 * @LastEditTime: 2022-07-05 14:21:41
 * @FilePath: /metricsx-standard-ui/src/router/children/indexMarket.ts
 */
// 指标库
//  --指标库
//  --我的收藏
import { RouteRecordRaw } from 'vue-router';
import * as RouteNames from '../consts';
const routes: RouteRecordRaw[] = [
  {
    path: '/market',
    component: () => import('@/layout/index.vue'),
    redirect: '/market/base',
    // meta: { title: '指标市场' },
    children: [
      {
        path: 'base',
        name: RouteNames.ROUTE_INDEXLIBRARY,
        component: () => import('@/views/indexMarket/index'),
        meta: { title: '指标市场' }
      },
      {
        path: 'detail',
        name: RouteNames.ROUTE_INDEXDETAIL, //设置成相同的名字
        component: () => import('@/views/indexlib/indexDetail'),
        meta: { title: '指标详情', hidden: true }
      }
      // {
      //   path: 'atom',
      //   name: RouteNames.ROUTE_ATOM_INDEXLIBRARY,
      //   component: () => import('@/views/indexlib/atom'),
      //   meta: { title: '原子指标库' }
      // },
      // {
      //   path: 'atom-detail',
      //   name: RouteNames.ROUTE_ATOM_INDEXDETAIL,
      //   component: () => import('@/views/indexlib/atomDetail'),
      //   meta: { title: '原子指标详情', hidden: true }
      // }
    ]
  }
];

export default routes;
